import Vue from 'vue'
import App from './App.vue'
import VCharts from 'v-charts'
import router from './router'
import store from './store'
import './plugins/element.js'
import http from './http'

Vue.config.productionTip = false
Vue.prototype.$http=http
Vue.use(VCharts)
Vue.mixin({
  computed: {
    uploadUrl(){
      return this.$http.defaults.baseURL + 'upload'
    }
  },
  methods: {
    getHeader(){
      return {Authorization:`Bearer ${localStorage.token||''}`}
    }
  },
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
